﻿CREATE TABLE [dbo].[OrderCloseInfo] (
    [OrderID]     VARCHAR (32) NOT NULL,
    [CloseStatus] TINYINT      NULL,
    [CloseReason] NCHAR (10)   NULL,
    [CloseTime]   NCHAR (10)   NULL,
    CONSTRAINT [FK_OrderCloseInfo_OrderID] FOREIGN KEY ([OrderID]) REFERENCES [dbo].[OrderBaseInfo] ([OrderID])
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'取消时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderCloseInfo', @level2type = N'COLUMN', @level2name = N'CloseTime';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'取消原因', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderCloseInfo', @level2type = N'COLUMN', @level2name = N'CloseReason';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1：已取消', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderCloseInfo', @level2type = N'COLUMN', @level2name = N'CloseStatus';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'订单标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderCloseInfo', @level2type = N'COLUMN', @level2name = N'OrderID';

